package com.ticket.sass.provider.business.impl;


import com.ticket.sass.common.file.factory.FileServiceFactory;
import com.ticket.sass.common.file.service.FileService;
import com.ticket.sass.provider.business.FileUpLoadBusiness;
import com.ticket.sass.provider.model.QiNiuModel;
import org.springframework.stereotype.Service;

/**
 * @author ywb
 * @date 2022-09-28 10:13
 */
@Service
public class FileUpLoadBusinessImpl implements FileUpLoadBusiness {
    

    @Override
    public QiNiuModel qiNiuModel() {
        FileService service = FileServiceFactory.getFileService();
        return new QiNiuModel(
            service.uptoken(),
            "jp",
            "https://material.jianpiao.net/"
        );
    }

}
